import { ConditionFactory } from '../../systems/condition-checker/factory';
import { FEATURE_UNLOCK_ID, type FeatureUnlockConfig } from './type';

export const FEATURE_UNLOCK_DATA: FeatureUnlockConfig[] = [
  {
    id: FEATURE_UNLOCK_ID.CULTIVATION,
    label: '修炼',
    conditions: [ConditionFactory.createCultivationSkillStudyCountCondition(1)],
  },
  {
    id: FEATURE_UNLOCK_ID.AUTO_CULTIVATION,
    label: '自动修炼',
    conditions: [ConditionFactory.createRealmCondition(1)],
  },
  {
    id: FEATURE_UNLOCK_ID.BACKPACK,
    label: '背包',
    conditions: [],
  },
  {
    id: FEATURE_UNLOCK_ID.EXPERIENCE,
    label: '历练',
    conditions: [ConditionFactory.createRealmCondition(1)],
  },
  {
    id: FEATURE_UNLOCK_ID.WORLD,
    label: '世界',
    conditions: [ConditionFactory.createRealmCondition(1)],
  },
  {
    id: FEATURE_UNLOCK_ID.SECT,
    label: '宗门',
    conditions: [ConditionFactory.createRealmCondition(1)],
  },
  {
    id: FEATURE_UNLOCK_ID.HOME,
    label: '洞府',
    conditions: [ConditionFactory.createRealmCondition(1)],
  },
  {
    id: FEATURE_UNLOCK_ID.CULTIVATION_SKILL,
    label: '功法',
    conditions: [ConditionFactory.createCultivationSkillStudyCountCondition(1)],
  },
  {
    id: FEATURE_UNLOCK_ID.FANG_SHI,
    label: '坊市',
    conditions: [ConditionFactory.createRealmCondition(1)],
  },
  {
    id: FEATURE_UNLOCK_ID.SPIRIT_ROOT,
    label: '灵根',
    conditions: [ConditionFactory.createRealmCondition(1)],
  },
];
